package com.ai.module.business.domain.entity;

import com.ai.module.chat.common.domain.BaseEntity;
import com.ai.module.chat.common.enu.AliFileSource;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import lombok.Data;

import java.time.LocalDateTime;

/**
 * @author: heJinQin
 * @create: 2024-03-16 12:06
 * @description:
 **/
@Data
@TableName("image_mange")
@ApiModel("用户评论记录参数")
public class UserImageMangeEntity extends BaseEntity {

    @TableField("user_id")
    private String userId;

    @TableField("file_path")
    private String filePath;

    @TableField("expire_time")
    public LocalDateTime expireTime = LocalDateTime.now().plusMonths(6);

    @TableField("bucket_name")
    private String bucketName;

    @TableField("file_name")
    private String fileName;

    @TableField("file_type")
    private String fileType = "PNG";

    @TableField("source")
    private AliFileSource imageSource = AliFileSource.IMAGE_TASK;

    @TableField("scale_path")
    private String scalePath;

}
